package com.psp.web.service;

import com.psp.web.model.UserBean;

public abstract interface UserService {
	public abstract UserBean existUser(int paramInt, String paramString);

	public abstract UserBean existUser(String paramString);

	public abstract UserBean regByPhone(String paramString1, String paramString2, String paramString3,
			String paramString4, String paramString5, String paramString6, String ip);

	public abstract UserBean regByEmail(String paramString1, String paramString2, String paramString3,
			String paramString4, String paramString5, String ip);

	public abstract boolean sendVCode(int paramInt, String paramString2);

	public abstract boolean sendActivateEmail(String email);

	public abstract boolean activateEmail(String paramString);
	/**
	 * 用户登录
	 * @param sessionId
	 * @param userName
	 * @param pwd
	 * @param vcode
	 * @param device
	 * @param ip
	 * @return
	 */
	public abstract UserBean login(String sessionId, String userName, String pwd, String vcode, String device, String ip);

	public abstract UserBean getUser(String paramString);

	public abstract UserBean updateUser(String userId, String name, int type);

	public abstract UserBean confirmFindPwdCode(String phone, String vcode);

	public abstract boolean resetPwd(String phone, String pwd, String confirmPwd, String confirmPwd2);

	public abstract UserBean sendFindPwdCode(String userName, String code, String key);

	public abstract void checkImgCode(String imgkey, String imgCode);

	public abstract boolean checkUserPhone(String phone, String vcode);

	public abstract UserBean updatePhone(String userId, String phone, String vcode);

	public abstract boolean sendEmailVcode(String email, int type);

	public abstract boolean checkUserEmail(String email, String vcode);

	public abstract UserBean updateEmail(String userId, String email, String vcode);

	public abstract boolean resetPassword(String userId, String oldPwd, String password, String confirmPwd);
}
